package org.xiaov.config.autoconfigure;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaovcloud
 * @since 2021/7/17 16:18
 */
@Component
@ConfigurationProperties(prefix = "id.snowflake")
@Getter
@Setter
public class SnowflakeProperties {
    /**
     * 机器码
     */
    private long machineId = 1;
    /**
     * 数据中心
     */
    private long datacenterId = 1;

}
